package com.mj.adapters;

import android.app.Activity;
import android.content.Context;
import android.widget.RelativeLayout;

import com.hxan.mghh155108.AdCallbackListener;
import com.hxan.mghh155108.AdView;

/**
 * </pre>
 * 
 * @author BPO
 * @version 
 */ 
public class AirpushAdapter extends CustomizedAdapter implements AdCallbackListener.MraidCallbackListener{

	public static final int AFFLIATE_ID = 8;
    
	public AirpushAdapter(Object mjLayout, Object ration) {
		super(mjLayout, ration);
	}

    @Override
    public void onHandler(Context context, RelativeLayout parentLayout, String key1, String key2) {
        // TODO Auto-generated method stub
        AdView adview = new AdView((Activity)context, AdView.BANNER_TYPE_IN_APP_AD, AdView.PLACEMENT_TYPE_INTERSTITIAL, 60, false,false, AdView.ANIMATION_TYPE_FADE );
        adview.setAdListener(this);
        attachAdview2Layout(adview);
    }
	

	@Override
	public void onAdClickListener() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAdExpandedListner() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAdLoadedListener() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAdLoadingListener() {

	    logDisplayAdSucceess();
	}

	@Override
	public void onCloseListener() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onErrorListener(String arg0) {
		// TODO Auto-generated method stub
		
	}

}